package com.zan.pattern.responsibility;

/**
 * @Author Zan
 * @Create 2024/4/27 11:09
 * @Description : 部门经理类
 * @ClassName: Manager
 */
public class Manager extends Handler {

    public Manager() {
        super(Handler.NUM_ONE, Handler.NUM_SEVEN);
    }

    @Override
    protected void handlerLeave(LeaveRequest request) {
        System.out.println(request.getName() + "请假" + request.getNum() + "天，" + request.getContent());
        System.out.println("部门经理审批：同意");
    }
}
